package com.shop.cereshop.app.dl.logic.domain;

import java.io.Serializable;
import java.util.Date;

public class CareShopNewsViewLog implements Serializable {
    private Long viewId;

    private Long newsId;

    private Long buyerForwardUserId;

    private Long buyerViewUserId;

    private String buyerUserName;

    private Date viewTime;

    private static final long serialVersionUID = 1L;

    public Long getViewId() {
        return viewId;
    }

    public void setViewId(Long viewId) {
        this.viewId = viewId;
    }

    public Long getNewsId() {
        return newsId;
    }

    public void setNewsId(Long newsId) {
        this.newsId = newsId;
    }

    public Long getBuyerForwardUserId() {
        return buyerForwardUserId;
    }

    public void setBuyerForwardUserId(Long buyerForwardUserId) {
        this.buyerForwardUserId = buyerForwardUserId;
    }

    public Long getBuyerViewUserId() {
        return buyerViewUserId;
    }

    public void setBuyerViewUserId(Long buyerViewUserId) {
        this.buyerViewUserId = buyerViewUserId;
    }

    public String getBuyerUserName() {
        return buyerUserName;
    }

    public void setBuyerUserName(String buyerUserName) {
        this.buyerUserName = buyerUserName == null ? null : buyerUserName.trim();
    }

    public Date getViewTime() {
        return viewTime;
    }

    public void setViewTime(Date viewTime) {
        this.viewTime = viewTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", viewId=").append(viewId);
        sb.append(", newsId=").append(newsId);
        sb.append(", buyerForwardUserId=").append(buyerForwardUserId);
        sb.append(", buyerViewUserId=").append(buyerViewUserId);
        sb.append(", buyerUserName=").append(buyerUserName);
        sb.append(", viewTime=").append(viewTime);
        sb.append("]");
        return sb.toString();
    }
}